import request from '@/utils/request'
export default {
  // 条件分页讲师查询的方法
  getCourseList(page,limit,searchObj) {
    return request({
      url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

  // 查询所有分类
  getAllSubject() {
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },

  // 获取当前课程详细信息与章节信息
  getDetailedCourseInfo(courseId){
    return request({
      url: `/eduservice/coursefront/getDetailedCourseInfo/${courseId}`,
      method: 'get'
    })
  }
}